﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>充值</title>
    <link rel="stylesheet" type="text/css" href="/View/CSS/bootstrap3.3.5/css/bootstrap.css">
    <script src="../JS/jquery-1.11.2.min.js"></script>
    <script src="../JS/avalon1.47.js"></script>

    <script type="text/javascript">
        var model = avalon.define({
            $id: "payview",
            paymodel: { "OrderMoney": "", "PayMethod": "支付宝", "Memo": "充值" },
            payi: function () {
                if (model.paymodel.OrderMoney && parseFloat(model.paymodel.OrderMoney) >= 0.01) {
                    $.post("/API/VIEWAPI.ashx?Action=Commanage_ADDDDGL", { "P1": JSON.stringify(model.paymodel) }, function (result) {
                        var r = JSON.parse(result);
                        if (r.ErrorMsg == "") {
                            window.location = "/WEB/Pay/AliPay/pay.aspx?OrderID=" + r.Result;
                        } else {
                            alert(r.ErrorMsg);
                        }

                    })


                } else {
                    alert("充值金额错误,充值金额最低100");
                }

            }

        })

    </script>

</head>
<body class="gray-bg" ms-controller="payview">
    <div class="wrapper wrapper-content " style="padding-top: 10px;    margin: 0 auto;position: relative; width: 1020px;">
        <h2 style="margin-top: 0; border-left: solid 3px #66c9f3; padding-left: 5px;">企业充值
        </h2>
        <div class="form-horizontal" style="padding-left: 15px; margin-top: 20px">

            <div class="form-group">
                <label class="col-sm-2 control-label">充值金额：</label>

                <div class="col-sm-8 form-inline">
                    <input type="email" placeholder="充值金额" class="form-control" style="width: 120px;" ms-duplex="paymodel.OrderMoney" /><span>元</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">充值方式：</label>

                <div class="col-sm-8">
                    <img src="/WEB/image/ico_pay.png" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-1 col-sm-8">
                    <a class="btn btn-sm btn-primary" ms-click="payi()">立即充值</a>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-8">
                    <p>付款说明：</p>

                    <p>1、收款方是什么公司？</p>
                    <p>答：收款方是校友会，请仔细核对。</p>
                    <p>2、充值金额是多少？</p>
                    <p>答：充值金额最低1，没有上限。</p>
                    <p>3、其他问题？</p>
                    <p>如在充值过程中遇到任何问题，都可和客服联系</p>
                </div>
            </div>

        </div>

    </div>
</body>
</html>
